package idiet.bean;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;
import java.math.BigDecimal;


/**
 * The persistent class for the food_ingredient database table.
 * 
 */
@Entity
@Table(name="food_ingredient")
public class FoodIngredient implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int id;

	private String comment;

	@Column(name="lm_timestamp")
	private Timestamp lmTimestamp;

	private BigDecimal qty;
	@ManyToOne
	@JoinColumn(name="food_id")
	private FoodMaterial foodMaterial;
	//bi-directional many-to-one association to FoodIngredientElement
	@ManyToOne
	@JoinColumn(name="element_id")
	private FoodIngredientElement foodIngredientElement;

	public FoodIngredient() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Timestamp getLmTimestamp() {
		return this.lmTimestamp;
	}

	public void setLmTimestamp(Timestamp lmTimestamp) {
		this.lmTimestamp = lmTimestamp;
	}

	public BigDecimal getQty() {
		return this.qty;
	}

	public void setQty(BigDecimal qty) {
		this.qty = qty;
	}

	public FoodIngredientElement getFoodIngredientElement() {
		return this.foodIngredientElement;
	}

	public void setFoodIngredientElement(FoodIngredientElement foodIngredientElement) {
		this.foodIngredientElement = foodIngredientElement;
	}

	public FoodMaterial getFoodMaterial() {
		return foodMaterial;
	}

	public void setFoodMaterial(FoodMaterial foodMaterial) {
		this.foodMaterial = foodMaterial;
	}
	
}